package com.sicilin.common.page;

import java.util.List;

/**
 * Created by sicilin on 2017/7/31.
 */
public class PageObject<T> {
    private int defaultRows;
    private int rows;
    private int page;
    private List<T> rowsList;
    private int total;

    /**
     * 默认构造函数不可以被调用
     */
    private PageObject(){ }

    public PageObject (int defaultRows){
        this.rows = defaultRows;
        this.page = 1;
        this.total = 0;
        this.defaultRows = defaultRows;
    }

    public int getDefaultRows() {
        return defaultRows;
    }

    public void setDefaultRows(int defaultRows) {
        this.defaultRows = defaultRows;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public List<T> getRowsList() {
        return rowsList;
    }

    public void setRowsList(List<T> rowsList) {
        this.rowsList = rowsList;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
